Skip to content

Fix/update fixed code - #47

Merged
tinazhang128 merged 11 commits into
mainfrom
fix/update-fixed-code
Oct 23, 2024
Merged

Fix/update fixed code#47
tinazhang128 merged 11 commits into
mainfrom
fix/update-fixed-code

Conversation

@BinLiang-Eric

Copy link
Copy Markdown
Collaborator
  • A crash that occurred when enabling accessibility before starting a study has been fixed.
  • The screen text sensor now correctly collects duplicate text when the foreground app changes, ensuring that screen text is captured during app switches, home screen access, and notification checks.
  • Fix display issues: long question titles can be displayed completely.
  • Fix the ESM queue logic to ensure that the correct number of questions are displayed according to the configurator settings.
  • Fix logic of reschedule next day random esm trigger, avoid repeat appear of esm notification.

EcZww and others added 9 commits October 23, 2024 12:09
This commit addresses two issues in the screen text sensor:

1. The screen text sensor now correctly collects duplicate text when the foreground app changes. This ensures that screen text is captured during app switches, home screen access, and notification checks.

2. A crash that occurred when enabling accessibility before starting a study has been fixed. The issue was caused by attempting to parse an empty string for the package specification criteria. A default value is now used, and a try-catch block has been added to handle potential NumberFormatExceptions.
change ":com.aware.plugin.studentlife.audio" into ':com.aware.plugin.studentlife.audio_final'
Resolved an issue where the text buffer was incorrectly reset upon every foreground app change, leading to potential loss of relevant data. Introduced a new buffer, textBuffer_app_change, dedicated to managing text hashes specifically during app transitions.
- Replace ArrayList with HashSet for textBuffer to improve duplicate check performance

- Streamline contentBuffer flushing and handling logic to commit changes specifically on app change
Comment thread aware-core/aware.gradle
Comment thread CHANGES.txt

@tinazhang128 tinazhang128 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@tinazhang128
tinazhang128 merged commit 45b457c into main Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants